//
//  KRReadPost.m
//  cookBook
//
//  Created by kuroken on 16/1/15.
//  Copyright © 2016年 kuroken. All rights reserved.
//

#import "KRReadPost.h"
#import <MJExtension.h>
#import "__lldb_autogen_nspair.h"

@implementation KRReadPost
+ (void)load
{
    [KRReadPost mj_setupReplacedKeyFromPropertyName:^__lldb_autogen_nspair *{
        return (__lldb_autogen_nspair *)@{
                                          @"url" : @"info.Url",
                                          @"viewCount" : @"info.ViewCount",
                                          @"avatar" : @"info.Avatar",
                                          @"userID" : @"info.UserId",
                                          @"userName" : @"info.UserName",
                                          @"vip" : @"info.IsVip",
                                          @"createTime" : @"info.CreateTime",
                                          @"cateName" : @"info.CateName",
                                          @"cateID" : @"info.CateId",
                                          @"title" : @"info.Title",
                                          @"commentCount" : @"info.CommentCount",
                                          
                                          @"shareUrl" : @"share_url",
                                          @"shareCommentCount" : @"comment_num",
                                          
                                          @"commentList" : @"commentlist"

                                          };
    }];
    
    [KRReadPost mj_setupObjectClassInArray:^__lldb_autogen_nspair *{
        return (__lldb_autogen_nspair *)@{
                                          @"commentList" : @"KRReadComment"
                                          };
    }];

}

- (void)setShareCommentCount:(NSString *)shareCommentCount
{
    if (shareCommentCount) {
        _shareCommentCount = shareCommentCount;
        if (!_commentcount) {
            _commentCount = shareCommentCount;
        }
    }
}

@end
